package com.tianji.remark.mapper;

import com.tianji.remark.domain.po.LikedRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 点赞记录表 Mapper 接口
 * </p>
 *
 * @author hrz
 * @since 2025-08-30
 */
public interface LikedRecordMapper extends BaseMapper<LikedRecord> {
    @Select("LOCK TABLES liked_record WRITE")
    void lockTable();

    @Select("UNLOCK TABLES")
    void unlockTable();

    @Delete("delete from liked_record where biz_id = #{BizId}")
    void deleteLiked(@Param("BizId") Long id);
}